package com.andy.mongo;

import org.mongojack.ObjectId;

import com.fasterxml.jackson.annotation.JsonProperty;

public class BlogPost {
	private String id;
	
	private String name;
	private boolean published;
	private String tags;

	@ObjectId
	@JsonProperty("_id")
	public String getId() {
		return id;
	}

	@ObjectId
	@JsonProperty("_id")
	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isPublished() {
		return published;
	}

	public void setPublished(boolean published) {
		this.published = published;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	@Override
	public String toString() {
		return "BlogPost [id=" + id + ", name=" + name + ", published=" + published + ", tags=" + tags + "]";
	}
	
	
	
	
	
	
	
}